package com.ruoyi.mall.product.interfaces.feign;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.to.SkuReductionTo;
import com.ruoyi.common.core.to.SpuBoundTo;
import com.ruoyi.mall.product.domain.vo.Bounds;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @program: zqs-mall
 * @description:  调用优惠卷服务
 * @author: Mr.Zhang
 * @create: 2022-06-14 11:07
 **/
@FeignClient(value = "ruoyi-mall-coupon")
public interface CouponFeignService {

    @PostMapping("/bounds")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/reduction")
    R saveSkuReduction(SkuReductionTo skuReductionTo);
}
